<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix= "s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>ASIMS</title>

<link href="../CSS/style.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="../js/checkform.js">
</script>
<script>
function checkpwdform(){
if(document.userEmail.useremail.value===""){
	window.alert("请输入邮箱！");
	document.userEmail.useremail.focus();
	return false;
}if(!checkEmail(document.userEmail.useremail.value)){
	window.alert("邮箱地址格式不正确");
	return false;
}
else{
	userEmail.action="queryPassword.action"
	userEmail.submit();
	}

}

//判断邮箱地址是否有效
function checkEmail(email){
	var pos1 = email.indexOf("@",0);
	var pos2 = email.indexOf(".",0);
//var   pos3 = email.lastIndexOf("@");
    // var   pos4 = email.lastIndexOf(".");
	if ((pos1 <= 0)||(pos1 === email.length)||(pos2 <= 0)||(pos2 === email.length))                
         return false;
       else
	     return true;
}
function sysMsg()
{
	<%					String error_msg = (String)session.getAttribute("error_msg");
						if(error_msg!=null)
						{
							//out.print(msg);
							out.print("alert(\'" + error_msg + "\');");
							session.removeAttribute("error_msg");
						}
	%>
}
</script>
</head>



<body onLoad="sysMsg()">

	<div id="wrap">

		<div id="header">

			<h1 id="sitename"><a href="#">ASIMS</a></h1>

				<div id="nav">

					<div id="titleblock">

					<div id="subject">机场静态信息管理系统</div>

				 </div>

				<div id="topmenu">

					<ul>
						<li><a href="../login/login.jsp">首页</a></li>
						<li class="active"><a href="../login/login.jsp">用户和角色管理</a></li>
						<li><a href="../login/login.jsp">航班信息管理</a></li>
						<li><a href="../login/login.jsp">机场设施管理</a></li>
						<li><a href="../login/login.jsp">新闻中心</a></li>
					</ul>

				</div>

			</div>

			<div class="clear"></div>

			<div id="breadcrumb">网站路径：<a href="../login/login.jsp">登陆页</a> &raquo; <a href=""  class="active">找回密码</a></div>

		</div>

		

		<div id="content">

			<div id="right">

			   <div class="post">

					<form name="userEmail" method="post" enctype="multipart/form-data">

							<div class="contactform">

								<p class="first">

								<label id="newslabel" for="newstitle">个人信息中的电子邮箱：</label>
									<s:textfield name="useremail"></s:textfield>
								</p>

							<div class="buttons">

							<div class="butarea2"></div>

							

								<button type="submit" name="findpwd" onClick="checkpwdform()">

									<img src="../images/import16.png" alt=""/> 

									提交

								</button>

								<button type="reset" name="cancel" onClick="javascript:window.location.href='../login/login.jsp'">

									<img src="../images/cancel16.png" alt=""/> 

									取消

								</button>

							</div>

						</div>

					</form>

				</div>

			</div> 

			<div id="sidebar">

				<div id="sidebartop"></div>

					 <h2>登陆页</h2>

						  <ul>

						  	<li class="active"><a href="">找回密码</a></li>

						  </ul>

			</div>

			<div class="clear"></div>

			<div id="bottom">

				<p><img src="../images/copyright.jpg" /></p>

				<p><a href="">隐私权</a> | <a href="">&copy;版权</a> | <a href="">法律声明</a> | <a href="">电子邮件：admin@163.com</a>

			</div>

		</div>

		

		<div id="footer">

			<div id="credits">

				ASIMS Power by IBM

			</div>

		</div>

	</div>



</body>

</html>
